package com.ruoyi.leave.service.impl;

import org.springframework.stereotype.Service;
import vip.lsjscl.flowboot.workflow.entity.DKActivity;
import vip.lsjscl.flowboot.workflow.entity.DKRuntimeTask;
import vip.lsjscl.flowboot.workflow.handler.DKActivityHandler;

/**
 * 变迁class
 *
 * @author zhangxingju
 * @date 2025/02/16
 */
@Service
public class LeaveActivityLoader implements DKActivityHandler {

    /**
     * 处理变迁
     *
     * @param activity 活动信息
     */
    @Override
    public void beforeHandle(DKActivity activity) {
        System.err.println(activity.getCode());


    }

    /**
     * 处理变迁
     *
     * @param runtimeTask 活动信息
     */
    @Override
    public void afterHandle(DKRuntimeTask runtimeTask) {
        System.err.println(runtimeTask.getActivity().getCode());
    }
}
